package com.mall.dao;

import com.mall.bean.ItemGoods;
import com.mall.bean.ItemGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ItemGoodsMapper {
    long countByExample(ItemGoodsExample example);

    int deleteByPrimaryKey(Integer goods_id);

    int insert(ItemGoods record);

    int insertSelective(ItemGoods record);

    List<ItemGoods> selectByExampleWithBLOBs(ItemGoodsExample example);

    List<ItemGoods> selectByExample(ItemGoodsExample example);

    ItemGoods selectByPrimaryKey(Integer goods_id);

    int updateByExampleSelective(@Param("record") ItemGoods record, @Param("example") ItemGoodsExample example);

    int updateByExampleWithBLOBs(@Param("record") ItemGoods record, @Param("example") ItemGoodsExample example);

    int updateByExample(@Param("record") ItemGoods record, @Param("example") ItemGoodsExample example);

    int updateByPrimaryKeySelective(ItemGoods record);

    int updateByPrimaryKeyWithBLOBs(ItemGoods record);

    int updateByPrimaryKey(ItemGoods record);

    List<ItemGoods> queryGoodsByCatsId(Integer catId);

    ItemGoods selectGoodsById();
}